<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<%@ include file="/WEB-INF/views/include/head.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <link href="${ctxStatic}/common/css/login.css" rel="stylesheet">
    <link href="${ctxStatic}/common/images/logo.ico" rel="shortcut icon" type="image/x-icon"/>
    <title>城市交通信号控制系统</title>
    <script type="text/javascript">
        $(function () {
            if (window != top){
                top.location.href = location.href;
            }
        });
    </script>
</head>
<body>
<div class="header">
    <div id="messageBox" class="alert alert-warning ${empty message ? 'hide' : ''}"><button data-dismiss="alert" class="close">×</button>
        <label id="loginError" class="error">${message}</label>
    </div>
</div>
<div class="container">
    <form class="form-signin" action="${ctx}/login" method="post">
        <h2 class="form-signin-heading">请登录</h2>
        <label for="username" class="sr-only">Email address</label>
        <input type="text" id="username" class="form-control"  name="username" placeholder="用户名" required autofocus>
        <label for="password" class="sr-only">Password</label>
        <input type="password" id="password" class="form-control" name="password" placeholder="密码" required>
        <div class="checkbox">
            <label>
                <input type="checkbox" value="remember-me"> 记住我
            </label>
        </div>
        <button class="btn  btn-primary btn-block" type="submit">登录</button>
    </form>
</div>
</body>
</html>